using Gameplay.PVE.Config;
using Gameplay.PVE.Entity;
using Gameplay.PVE.Skill;
using UnityEngine;
using Yoozoo.Libs;

namespace Gameplay.PVE
{
    public class AddElementArg : BaseTransmitArg
    {
        public Vector3 bulletPosition;
        public UnitBase target;
        public UnitBase source;
        public SkillBase sourceSkill;
        /// <summary>
        /// 是否为技能附带，是的话会随着技能结束而销毁，并且暴击吸血伤害加成等只计算与该技能
        /// </summary>
        public bool isSkillAdditive;
        public PveSkillElementConfig elementConfig;
        public bool isCrit;
        public float rigidBreak;
        public int id;

        protected override void Reset()
        {
            base.Reset();
            isSkillAdditive = false;
            rigidBreak = 0;
            isCrit = false;
        }
    }
}